| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- .watch-page {
- display: flex;
- height: 100%;
- gap: 0;
- width: 100%;
- @media (max-width: 768px) {
- flex-direction: column;
- height: auto;
- min-height: 100%;
- }
- &__content {
- flex: 1;
- min-width: 0;
- overflow-y: auto;
- padding: 12px 16px 32px;
- @media (max-width: 1199px) {
- padding: 8px 12px 24px;
- }
- @media (max-width: 768px) {
- padding: 0 0 16px;
- overflow-y: visible;
- }
- }
- &__player {
- position: relative;
- width: 100%;
- padding-top: 56.25%; // 16:9
- background: #000;
- border-radius: 12px;
- overflow: hidden;
- box-shadow: 0 4px 16px var(--shadow-color);
- @media (max-width: 768px) {
- border-radius: 0;
- box-shadow: none;
- }
- iframe {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border: none;
- }
- }
- &__offline {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 12px;
- color: #999;
- a {
- color: var(--color-accent);
- text-decoration: underline;
- }
- }
- &__info {
- padding: 16px 4px 0;
- @media (max-width: 768px) {
- padding: 14px 16px 0;
- }
- }
- &__title {
- font-size: 1.375rem;
- font-weight: 700;
- line-height: 1.3;
- margin: 0 0 12px;
- color: var(--text-primary);
- word-break: break-word;
- @media (max-width: 768px) {
- font-size: 1.125rem;
- margin-bottom: 10px;
- }
- }
- &__meta {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- flex-wrap: wrap;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--border-default);
- @media (max-width: 480px) {
- flex-direction: column;
- align-items: stretch;
- gap: 12px;
- }
- }
- &__channel {
- display: flex;
- align-items: center;
- gap: 10px;
- min-width: 0;
- flex: 1;
- color: inherit;
- text-decoration: none;
- &:hover .watch-page__channel-name {
- color: var(--text-link);
- }
- }
- &__avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- object-fit: cover;
- flex-shrink: 0;
- &--default {
- display: flex;
- align-items: center;
- justify-content: center;
- background: var(--bg-elevated);
- color: var(--text-secondary);
- font-weight: 700;
- }
- }
- &__channel-body {
- display: flex;
- flex-direction: column;
- gap: 2px;
- min-width: 0;
- }
- &__channel-name {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- font-size: 0.9375rem;
- font-weight: 600;
- color: var(--text-primary);
- transition: color 0.15s;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- &__verified {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 14px;
- height: 14px;
- border-radius: 50%;
- background: var(--color-accent);
- color: #fff;
- font-size: 0.5625rem;
- flex-shrink: 0;
- }
- &__channel-sub {
- font-size: 0.75rem;
- color: var(--text-muted);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- &__viewers {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- color: var(--text-secondary);
- font-weight: 600;
- }
- &__viewers-dot {
- display: inline-block;
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: #ef4444;
- animation: watch-page-live-pulse 1.5s ease-in-out infinite;
- }
- @keyframes watch-page-live-pulse {
- 0%, 100% {
- opacity: 1;
- transform: scale(1);
- }
- 50% {
- opacity: 0.5;
- transform: scale(0.85);
- }
- }
- &__actions {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-shrink: 0;
- flex-wrap: wrap;
- @media (max-width: 480px) {
- width: 100%;
- justify-content: flex-start;
- }
- }
- &__follow {
- padding: 8px 16px;
- }
- &__desc {
- margin-top: 14px;
- padding: 12px 14px;
- background: var(--bg-subtle);
- border-radius: 10px;
- color: var(--text-primary);
- font-size: 0.875rem;
- line-height: 1.5;
- &-body {
- margin: 0;
- white-space: pre-wrap;
- word-break: break-word;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
- &--open &-body {
- -webkit-line-clamp: unset;
- overflow: visible;
- }
- &-toggle {
- margin-top: 8px;
- padding: 0;
- border: none;
- background: transparent;
- color: var(--text-secondary);
- font-size: 0.8125rem;
- font-weight: 600;
- cursor: pointer;
- &:hover {
- color: var(--text-primary);
- }
- }
- }
- &__chat {
- width: 360px;
- flex-shrink: 0;
- border-left: 1px solid var(--border-default);
- display: flex;
- flex-direction: column;
- background: var(--bg-page);
- @media (max-width: 1199px) {
- width: 320px;
- }
- @media (max-width: 768px) {
- width: 100%;
- height: 500px;
- border-left: none;
- border-top: 1px solid var(--border-default);
- }
- }
- }
|